<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.autocomplete.js"></script>
	
<script>
	$(function() {
		var afilliates = new Array(); 
			<?php
			for ($i=0; $i<=count($names)-1; $i++)
			{
			echo "afilliates[".$i."] = '".$names[$i]."';";
			}
			?>
		$( "#search_afilliates" ).autocomplete({
			source: afilliates,
			matchContains: true,
			minChars: 2,
			autoFill: true
		});
	});
	
</script>

<style type="text/css">
<!--
.Estilo1 {
	font-size: x-large;
	font-weight: bold;
}
.Estilo5 {font-family: "Times New Roman", Times, serif; font-size: large; }
.Estilo6 {
	font-family: "Times New Roman", Times, serif;
	font-size: 18px;
}
-->
</style>
</head>

<body>
<table width="538" border="0" align="right">
        <tr>
          <td width="602"><form id="form1" name="form1" method="post" action="<?php echo base_url(); ?>Travelagencycontroller/loadHomeAgency/<?php echo $id_agency;?>/<?php echo $id_user;?>/<?php echo $username;?>/6">
            <table width="100%" border="0">
              <tr>
                <td><div align="right">Nombre del Hotel:</div></td>
                <td><label>
                    <div class="ui-widget">
                      <input name="search_afilliates" type="text" id="search_afilliates"/>
                    </div>
                  </label>                </td>
              </tr>
              <tr>
                <td><div align="right">Lugar:</div></td>
                <td><select name="cities" id="cities">
                    <option value=" "<?php echo set_select('cities',NULL,TRUE);?> >Seleccione alguna Ciudad</option>
                   <?php
					foreach($listCities as $aux)
					{
					?>
                <option value="<?php echo $aux['id']; ?>"<?php echo set_select('cities',$aux['id']); ?> > <?php echo $aux['name']; ?></option>
                <?php 
					}	 
					?>
                </select></td>
              </tr>
              
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
            </table>
                    <label>
                    <div align="center">
                      <input type="submit" name="button" id="button" value="Ver Hoteles" />
                    </div>
                    </label>
          </form>
          </td>
        </tr>
</table>
<div align="center"></div>
</body>
</html>
